package codename.carrot.bomberman.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import codename.carrot.bomberman.R;

/**
 *  Displays information about the game and whatnot.
 * @author Gruppe A4
 *
 */

public class AboutGameActivity extends Activity implements OnClickListener{
	
    /**
     * Button which opens the help-activity
     */
	private Button btnHelp; 
	
	@Override
    public void onCreate(Bundle savedInstance) {
        super.onCreate(savedInstance);
        
        setContentView(R.layout.activity_about_game);
        btnHelp = (Button) findViewById(R.id.btnAboutGame);
        btnHelp.setOnClickListener(this);
               
    }
		
	@Override
	public void onClick(View v) {
		if(v == btnHelp){
			Intent intent = new Intent(this, HelpActivity.class);
			startActivity(intent);
		}
		
	}
    @Override
    public void onBackPressed() {
        Intent intent = new Intent(this, MainActivity.class);
        startActivity(intent);
    }

}
